package com.gitee.zw.irmp.common.auth.vo;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

@Data
public class LoginUser implements Serializable {
    public enum Status {
        ACTIVE,
        LOCKED,
        DISABLED,
        HIDDEN,
        DELETED
    }
    /**
     * 登录账号，如: admin
     * @return
     */
    private String username;

    /**
     * 显示名称，可以是中文名称或是网名等，如: 管理员，张三，无为等
     * @return
     */
    private String displayName;
    private String password;

    private Status status;

    private LocalDate validFrom;

    private LocalDate validTo;

    private List<? extends RoleVo> roles;

    private List<? extends OrgInfoVo> bizOrgs;

    private List<? extends OrgInfoVo> mngOrgs;


}
